#include "s3c2440_soc.h"
#include "uart.h"

int main(void)
{
    unsigned char ch;

    urat0_init();

    puts("Hello world!\n\r");

    while(1)
    {
        ch = getchar();

        if(ch == '\n')
        {
            putchar('\r');
        }

        if(ch == '\r')
        {
            putchar('\n');
        }
        
        putchar(ch); // 回显
    }

    return 0;
}